
import java.util.Scanner;

public class Main{

    public String isWin;

    public static void main(String[] args) {
        Main main = new Main();
        NGuessNumber nGuessNumber = new NGuessNumber();
        Scanner input = new Scanner(System.in);
        int jix = input.nextInt();
        while (jix == 1) {
            main.isWin = String.valueOf(nGuessNumber.compareGuessAnswer());
            switch (main.isWin) {
                case "true":
                    System.out.println("获胜！");
                    break;
                case "false":
                    System.out.println("失败！");
                    break;
            }
            System.out.println("是否结束游戏，结束请按2");
            int jies = input.nextInt();
            if (jies==2){
                break;
            }
        }

    }

}


